home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
hardware
/
ryemouse
/
ryemouse.h
< prev
next >
Wrap
Text File
|
1995-01-22
|
3KB
|
112 lines
/*
WARNING: Do not alter or delete file NOTREGIS.TXT
It will cause RYEMOUSE.LIB to malfunction.
*/
//////////////////////////////////////////////////////////////////
void initmouse(void);
/* You MUST call this routine before any other.
It will display a message requesting registration.
The registered version does not have this, nor does it
check for the notregis.txt file.
*/
//////////////////////////////////////////////////////////////////
void showmouse(void);
/* Makes mouse visible.
*/
//////////////////////////////////////////////////////////////////
void hidemouse(void);
/* Makes mouse invisible.
*/
//////////////////////////////////////////////////////////////////
void getmouse(int *,int *,int *);
/* Gets mouse information.
Call routine like so:
--------------------------------------
getmouse(int *x,int *y, int *buttons);
--------------------------------------
x will contain the x-coordinate of the mouse,
y will contain the y-coordinate of the mouse,
buttons will contain the button status:
0: No buttons pressed
1: Left button pressed
2: Right button pressed
3: Both buttons pressed
*/
//////////////////////////////////////////////////////////////////
void setmousepos(int,int);
/* Sets current mouse position.
Call like so:
-----------------------------
setmousepos(int 160,int 100);
-----------------------------
The first value is the x, the second is the y.
*/
//////////////////////////////////////////////////////////////////
void setxlimit(int,int);
/* Sets the x limits.
The first value is the minimum x value,
the second is the maximum x value
*/
//////////////////////////////////////////////////////////////////
void setylimit(int,int);
/* Same as above, but for the y value.
*/
//////////////////////////////////////////////////////////////////
void getmotion(int *,int *);
/* Gets the amount the mouse move since the last call to
this routine.
Call like so:
-------------------------
getmotion(int *x,int *y);
-------------------------
y will return vertical movement,
x will return horizontal movement.
NOTE: Movement is NOT IN PIXELS!!!!
It's in mickeys, another form of mouse measurement.
You'll have to experiment with it.
*/
/*
Registered version includes:
* Graphics screen setting.
* Graphics cursor shape setting.
* Text cursor shape setting.
* Light Pen emulation.
* Mickey/Pixel ratio setting.
* Conditional cursor off. This makes the mouse cursor invisible in
a defineable area of the screen.
* Set/get mouse sensitivity
* Set/get mouse display page
* Set interrupt rate
* Enable/disable mouse driver
* Mouse software reset
* Get/set message language
* Get mouse information. Retrieves such information as driver version,
mouse type, etc...
* Mouse hardware reset
* Digital Manual
*/